package com.awenhui.demo.study;

/**
 * @author yuxf
 * @version 1.0
 * @date 2020/9/21 9:24
 */
public enum Color {
    RED(1, "红色"), GREEN(2,"绿色"), BLUE(3,"蓝色");
    private String name;
    private int value;

    private Color(int value, String name) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
